package com.mynewspaper.components;

import java.util.ArrayList;

import com.mynewspaper.entity.Menu;
import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WOContext;

public class UserMenu extends WOComponent {
	private static final long serialVersionUID = 8564571750258382157L;
	
	public Menu item;
	public ArrayList<Menu> menus = new ArrayList<Menu>(); 
	
	public ArrayList<Menu> getMenus(){
		return menus;
	}
	
	public UserMenu(WOContext context) {
        super(context);
        menus.add(new Menu("News", "DirectActionMenu", "news"));
        menus.add(new Menu("Registrations", "DirectActionMenu","registration"));
        menus.add(new Menu("Contacts", "DirectActionMenu", "contacts"));
        
	}
}